﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using TriviaViewModel;
using System.Globalization;
using GalaSoft.MvvmLight;

namespace TriviaViews.Converters
{
    public class ViewModelConverter:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
           // ViewModelBase val = value as ViewModelBase;

            switch (parameter.ToString())
            {
              
                case "EntranceView":
                    value = new EntryViewModelWizard();
                    return value;
                case "ScoreView":
                    value = new ScoreBoardViewModelWizard();
                    return value;
                default:
                    return null;
            }
           
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
